<template>
  <div class="app-container">
    <TableMapper ref="mapper" :mapperFrom="mapperFrom" />
  </div>
</template>
<script>
import TableMapper from './components/tableMapper.vue'
export default {
  name: 'Mapper',
  props:['mapperFrom'],
  components: { TableMapper },
  methods: {
    sendTables(fromTablesList, toTablesList,dialogStatus) {
      this.$refs.mapper.fromTablesList = fromTablesList
      this.$refs.mapper.toTablesList = toTablesList
     if(dialogStatus=='update'){
      this.$refs.mapper.computFilter()
     }
    },
    getLTables() {
      return this.$refs.mapper.getLTables()
    },
    getRTables() {
      return this.$refs.mapper.getRTables()
    },
    getName(){
      return this.$refs.mapper.getName()
    },
    rest(){
      this.$refs.mapper.rest()
    },
    getHistory(){
      console.log('11')
      this.$refs.mapper.getHistory()
    }
  }
}
</script>
